#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<math.h>
using namespace std;

int main()
{
	int n;
	double d;
	cin >> n;
	cin >> d;
	int num = d * pow( 2,n)+0.5;
	cout << num;
	return 0;
}